<?php slot('js_insideLoadFunction')?>
$('#login_login_password').val('');
$('#login_login_user').focus();
$('#submit_form').click(function(){
	$('.box-errors').text('');
	if($('#login_login_user').val().length<=0){
		$('.box-errors').text('<?php echo __('login_user_error_empty',null,'login')?>');
		$('#login_login_user').focus();
		return false;
	}
	if($('#login_login_password').val().length<=0){
		$('.box-errors').text('<?php echo __('login_password_error_empty',null,'login')?>');
		return false;
	}
	$('#login_login_password').val(Sha1.hash($('#login_login_password').val()));
	return true;
});
<?php end_slot()?>

<style type="text/css">
<!--
.box-login{
	width:350px;
	margin:150px auto 0px auto;
	border:1px solid #ccc;
	border-radius:7px 7px 0px 0px;
	-moz-border-radius:7px 7px 0px 0px;
	-webkit-border-radius:7px 7px 0px 0px;
	background: #efefef;
	padding:1px;
}
.box-login > .title{
	color:#900;
	font-size: 15px;
	background: url(/css/admin/img/global/top-bg.png) top left repeat-x;
	padding:7px 15px;
	border-radius:5px 5px 0px 0px;
	-moz-border-radius:5px 5px 0px 0px;
	-webkit-border-radius:5px 5px 0px 0px;
	border-bottom:1px solid #ccc;
	font-weight: bold;
}
.box-login > .content{
	padding:10px 15px 10px 15px;
}
.box-errors{
	width:350px;
	margin:5px auto 0px auto;
	color:#f00;
	font-size: 12px;
	text-align: center;
}
-->
</style>
<div class="box-login">
    <div class="title"><?php echo __('login_title',null,'login')?></div>
    <div class="content"><div class="content"></div>
    	<form action="?" method="post">
    		<?php echo $form['_csrf_token']?>
    		<div class="form-field">
			<label for="login_login_user"><?php echo __('login_user',null,'login')?></label>
				<span class="required"><?php echo $form['login_user']->render(array('maxlength'=>75))?></span>
			</div>
			<div class="form-field">
			<?php if($form['login_password']->hasError()):?>
				<label></label><span class="error"><?php echo $form['login_password']->renderError()?></span><br/>
			<?php endif?>
				<label for="login_login_password"><?php echo __('login_password',null,'login')?></label>
				<span class="required"><?php echo $form['login_password']->render(array('maxlength'=>255, 'type'=>'password'))?></span>
			</div>
			<div class="form-field">
				<label>&nbsp;</label>
				<span><input type="submit" class="button" id="submit_form" value="<?php echo __('login_submit',null,'login')?>"/></span>
			</div>
    	</form>
    </div>
 </div>
 <div class="box-errors">
 	<?php if($form->hasErrors() || $form->hasGlobalErrors() || count($errors)) echo sprintf(__('login_error_failed',null,'login'),$sf_user->getAttribute('admin.login_counter','1'))?>
 </div>